/*
 *  $Id: Agony.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Spells {
    public class Agony: TargetEnchantmentCard<Creature> {
        public Agony(): base("001_d_s_agony") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            Target = CreatureTarget.Both;
            AddManaCost(ElementType.Darkness, 5);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new AgonyAffect();
        }

        private class AgonyAffect: EnchantmentAffect<Agony> {
            public AgonyAffect() {
                Add(new Affects.Brutal());
                Add(new Affects.Immortal());
                Add(new Affects.Death(1));
                Add(new Affects.ModDamage(2));
            }
        }
    }
}
